// components/album-card/index.ts
Component({
    options: {
        styleIsolation: "isolated"
    },
    properties: {
        item:{
            type:Object,
            value:()=>{
                return null
            }
        }
    },

    /**
     * 组件的初始数据
     */
    data: {

    },

    /**
     * 组件的方法列表
     */
    methods: {
        onTab(){
            // console.log(this.properties.item);
            const id=this.properties.item.id
            wx.navigateTo({
                url:`/pages/playlist/detail?id=${id}`
            })
        }
    }
})
